#include "scene_main.h"

SceneMain* SceneMain::ms_instance = 0;

SceneMain::SceneMain()
{
}

void SceneMain::on_event()
{
}

void SceneMain::on_update(float time)
{
	std::cout << 1.f/time << "\n";
}

void SceneMain::on_draw()
{
	this->window->Clear(sf::Color(150, 200, 230));
}

SceneMain::~SceneMain()
{
}

SceneMain* SceneMain::Instance()
{
	if(ms_instance == 0){
		ms_instance = new SceneMain();
	}
	return ms_instance;
}

void SceneMain::Release()
{
	if(ms_instance){
		delete ms_instance;
	}
	ms_instance = 0;
}

